package com.springapp.mvc.service.Interface;

import com.springapp.mvc.dao.bean.Operation;

import java.util.List;

/**
 * Created by qinyy on 2018/7/25.
 */
public interface OperationService
{
    Operation getFirstUnexcutedOperation();

    void changeOperationStatus(int OperationId,boolean excuted);

    void insertNewOperation(Operation operation);

    int getOperationCount();

    List<Operation> queryOperationPaged(int limit,int offset,String sortPro,String sortType);

    int deleteOperation(int operationId);

    Operation queryOperationById(int operationId);
}
